<?php

namespace App\Http\Controllers\api;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\Library;
use App\Models\Luck;

class RankingController extends Controller
{

    /**
     * 总金额榜单
     * @return [type] [description]
     */
    public function rankingList() {
        $result = Library::rankingList();
        echo empty($result) ? json_encode(['code'=>201]) : json_encode(['code'=>200,'result'=>$result]);
        return ;
    }

    /**
     * 幸运值榜单
     * @return [type] [description]
     */
    public function lRankingList() {
        $result = Luck::rankingList();
        echo empty($result) ? json_encode(['code'=>201]) : json_encode(['code'=>200,'result'=>$result]);
        return ;
    }

}
